package com.fcscs.cservice.client.common.model.inroomdining;

import java.util.Collection;
import java.util.Map;

import com.fcscs.core.gwt.common.EntityModelData;
import com.fcscs.cservice.client.common.CServiceConstants;
import com.fcscs.share.gwt.common.ShareGWTConstants;

public class InRoomDiningModelData extends EntityModelData<InRoomDiningModel>{

	public InRoomDiningModelData(InRoomDiningModel t) {
		super(t);
	}

	private static final long serialVersionUID = 1L;

	@Override
	protected void populateNames(Collection<String> tempNames) {
		tempNames.add(ShareGWTConstants.ROOM);
		tempNames.add(CServiceConstants.GUESTNAME);
		tempNames.add(CServiceConstants.CATEGORY);
		tempNames.add(CServiceConstants.DELIVERYDATE);
		tempNames.add(CServiceConstants.DELIVERYTIME);
		tempNames.add(CServiceConstants.STATUS);
	}

	@Override
	protected void populateProps(Map<String, Object> props) {
		props.put(ShareGWTConstants.ROOM, entity.getRoomNo());
		props.put(CServiceConstants.GUESTNAME, entity.getGuestName());
		props.put(CServiceConstants.CATEGORY, entity.getCategroy());
		props.put(CServiceConstants.DELIVERYDATE, entity.getDeliveryDate());
		props.put(CServiceConstants.DELIVERYTIME, entity.getDeliveryTime());
		props.put(CServiceConstants.STATUS, entity.getStatus());
	}

	@Override
	protected <X> void setProperty(String property, X value) {
		
	}

}
